<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<br/>
		<div>共：<span id="visitshu"></span>次</div>
		<br>
		
		<div>您的访问记录</div>
		<hr>
		<div id="d1"></div>
		<script>
		    var visitlist1=localStorage.visitlist1;
		
		    if(visitlist1){
		        visitlist1=JSON.parse(visitlist1)
		    }else{
		        visitlist1=[];
		    }
		    var visit={
		        visittime:new Date().toLocaleString()
		    }
		    visitlist1.unshift(visit)
		
		    visitshu.innerHTML=visitlist1.length;
		    for(var i=0;i<visitlist1.length;i++){
		        var newdiv=document.createElement("div")
		        newdiv.innerHTML=visitlist1[i].visittime;
		        d1.appendChild(newdiv);
		    }
		    localStorage.visitlist1=JSON.stringify(visitlist1)
		</script>
	</body>
</html>
